Skip to content

feat(id): run plaza-sdk + rust-counter tests in flake checks, rebuild-gate counter.wasm (#7904) - #8543

Merged
dezren39 merged 1 commit into
mainfrom
queue/14257-7904-rust-sdk-venue
Nov 11, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/14257-7904-rust-sdk-venue

Conversation

@dezren39

@dezren39 dezren39 commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Closes #7904. Queue task 14257.

The Rust example guests — plaza-sdk (pkgs/id/examples/rust-world, 9 unit tests) and rust-counter (pkgs/id/examples/rust-counter, 2 unit tests) — are standalone crates outside the pkgs/id workspace, so no workspace test venue ever ran their tests, and the checked-in counter.wasm (loaded verbatim by the sandbox conformance tests) was rebuilt only by hand.

What this does

  • test-rust-examples flake check (+ test-rust-examples just recipe, also added to the ci aggregate): runs cargo test for both example crates. Listed in .github/scripts/id-pr-checks.txt, so it runs as a parallel PR job.
  • rust-counter-wasm flake check (roc-examples pattern): rebuilds counter.wasm from source with examples/rust-counter/build.sh, then runs the sandbox lib tests (cargo test --no-default-features --features sandbox,world --lib sandbox) against the rebuilt module. Also in the PR check list.
    • This needs a wasm32-unknown-unknown std, which the pinned toolchain (rust-toolchain.toml) does not carry, so the flake adds rustToolchainWasm = rustToolchain.override { targets = [ "wasm32-unknown-unknown" ]; } for this check's PATH.
    • Why rebuild-and-test instead of a byte drift gate: wasm bytes are not reproducible across rustc builds or build paths. Measured on this branch: the same source built with the rustup 1.99.0 and the rust-overlay 1.99.0 toolchains differs in the producers and code sections (49,799 vs 45,528 bytes), and the previously checked-in module (49,774 bytes) matches neither. A byte gate would be permanently red; the roc-examples arrangement proves the thing that matters — the module built from current source passes the conformance tests that load it.
  • Registry: .github/test-suite-registry.json gains id.examples.plaza-sdk and id.examples.rust-counter entries naming the venue and invocation.
  • just-recipes.json regenerated for the new recipe.

Verification (laptop, this branch)

  • checks.x86_64-linux.test-rust-examples: pass — plaza-sdk 9/9, rust-counter 2/2.
  • checks.x86_64-linux.nix-fmt-check, checks.x86_64-linux.just-recipes-drift: pass.
  • .github/scripts/check-id-pr-checks.sh against the real flake: pass (37 checks, list matches); its contract tests and id-pr-checks-matrix.test.sh: pass.
  • checks.x86_64-linux.rust-counter-wasm: pass — counter.wasm rebuilt in-check, sandbox suite 36 passed / 0 failed against the rebuilt module. (First local attempt died on laptop disk ENOSPC with the root filesystem at 100%; passed on retry after space freed.)
  • Note: treefmt-check is red on clean main too (pre-existing; none of this PR's files are in its change list after the justfile blank-line fix).

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 11, 2026 05:08
@coderabbitai

coderabbitai Bot commented Nov 11, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 55 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4c307b9c-4c02-433c-a988-fd9a1f0def30
Commits

Reviewing files that changed from the base of the PR and between 44fd6a4 and 09691f8.

Files selected for processing: 5

  • .github/scripts/id-pr-checks.txt
  • .github/test-suite-registry.json
  • pkgs/id/flake.nix
  • pkgs/id/just-recipes.json
  • pkgs/id/justfile
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T05:10:21.624298Z 09691f8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant